import { axios } from '@/libs/api.request'
// #region  客户
export const SearchDepartment = form => {
    return axios.post('api/Department/SearchDepartment', form)
}
export const SaveDepartment = form => {
    return axios.post('api/Department/SaveDepartment', form)
}

export const DeleteDepartment = id => {
    return axios.post('api/Department/DeleteDepartment/' + id)
}

export const GetDepartment = id => {
    return axios.get('api/Department/GetDepartment/' + id)
}
export const GetTreeDepartment = () => {
    return axios.get('api/Department/GetTreeDepartment')
}